package cvi.com.reader.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import cvi.com.reader.R;
import cvi.com.reader.base.BaseActivity;
import cvi.com.reader.tool.Timeutils;

/**
 * Created by 梅涛 on 2020/8/5.
 */

public class AA extends BaseActivity {
    Timeutils timeutils;
    @BindView(R.id.mButton_start)
    Button mButtonStart;
    @BindView(R.id.mButton_pause)
    Button mButtonPause;
    @BindView(R.id.mButton_stop)
    Button mButtonStop;
    @BindView(R.id.mTextView)
    TextView mTextView;

    @Override
    protected int getLayoutId() {
        return R.layout.aaa;
    }

    @Override
    protected void initView() {


        timeutils = new Timeutils(mTextView);
        mButtonStart.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                timeutils.startTimer();
            }
        });

        mButtonPause.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                timeutils.puseTimer();
            }
        });
        mButtonStop.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                timeutils.stopTimer();
            }
        });

    }


    @Override
    protected void initData() {

    }

    @Override
    protected void extrasDoSome(Bundle extras) {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}
